import { App } from "vue";
import { formatUTCDateTime, DATE_TIME_FORMAT } from "@/utils/date-format";

export default function registerProperties(app: App): void {
  // 添加全局属性
  app.config.globalProperties.$filters = {
    
    foo() {
      console.log('foo');
    },

    formatUTCDateTime(value: string, format: string = DATE_TIME_FORMAT) {
      return formatUTCDateTime(value, format)
    }
  }
}